package util

var (
	POPULAR_Normal  int64 = 5  //>5%
	POPULAR_Hot     int64 = 10 //>10%
	POPULAR_VeryHot int64 = 30 //>30%
)

var TSConvertPara = 100000000 //timestamp=date*TSConvertPara + time

var MaxAmount = [4]int64{1000000000, 700000000, 450000000, 350000000} //*100,每只股票最大分配量,仅在调配生效
var MaxCount int32 = 5                                                //对标账户，每只股票最多能分配给的账户数
var KLineCountOfDay = [4]int{1, 2, 4, 8}

// var PeriodManager = [PERIOD_COUNT][9]bool{{false, false, false, false, false, false, false, true, true},
// 	{false, false, false, true, false, false, false, true, true},
// 	{false, true, false, true, false, true, false, true, true},
// 	{true, true, true, true, true, true, true, true, true}}

//多线程数量上限
var SlotCount = 1

//执行状态
var (
	STATE_ERROR bool = false
	STATE_READY bool = true
)

//滤网[账户级别{A-D}][操作风格{稳健，激进}][账户收敛状态{Not-Extreme}]
var Filters = [4][2][3]Level{
	{{LEVEL_D, LEVEL_B, LEVEL_A}, {LEVEL_D, LEVEL_C, LEVEL_B}},
	{{LEVEL_D, LEVEL_B, LEVEL_A}, {LEVEL_D, LEVEL_C, LEVEL_B}},
	{{LEVEL_B, LEVEL_B, LEVEL_B}, {LEVEL_C, LEVEL_C, LEVEL_C}},
	{{LEVEL_B, LEVEL_A, LEVEL_A}, {LEVEL_C, LEVEL_A, LEVEL_A}},
}

var DIFFERENT_STOCK_COUNT_2PERIOD = 40
var DIFFERENT_STOCK_COUNT_3PERIOD = 60
var DIFFERENT_STOCK_COUNT_4PERIOD = 90
